package compile;

import java.util.List;

/**
 * @author SongJun
 * @description 方法体
 * @date 2021/9/28 15:38
 */
public class FunctionBody implements AstNode {
    List<FunctionCall> stmts;

    public FunctionBody(List<FunctionCall> stmts) {
        this.stmts = stmts;
    }

    public static boolean isFunctionBodyNode(Object node){
        return node != null && node instanceof FunctionBody;
    }

    @Override
    public void dump(String prefix) {
        System.out.println(prefix+"FunctionBody");
    }
}
